package homework4.exp4;

public class EvenThread extends Thread {
    private int count=0;
    @Override
    public void run(){
        while(count<100){
            count++;
            if (count%2==0){
                System.out.println("EvenThread="+count);
            }
            try{
                Thread.sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
